import { Controller, Get, Query, ParseIntPipe } from '@nestjs/common';
import { AppService } from './app.service';

@Controller()
export class AppController {
  constructor(private readonly appService: AppService) {}

  @Get('qq')
  getHello(@Query('id', ParseIntPipe) id: string): string {
    console.log('idid', id);
    return this.appService.getHello();
  }
  @Get('getHello2')
  getHello2(): string {
    return this.appService.getHello2();
  }
}
